package apIExercise.io;

import java.io.*;

/**
 * 添加单字节，只写
 */
public class Fos {
    public static void main(String[] args) throws IOException {
        /*
        File file=new File("./af");
        FileOutputStream fos=new FileOutputStream(file);
        fos.write(1);
        fos.write(2);
        fos.write(-1);
        fos.write(255);
        fos.write(256);
        fos.close();
        System.out.println("添加成功");

         */
        FileOutputStream fos=new FileOutputStream("./af");
        fos.write(1);
        fos.write(-1);
        fos.write(255);
        fos.write(256);
        System.out.println("书写完毕！");
        fos.close();

    }
}
